
package com.kugou.game.sdk.ui.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.ListView;

/**
 * 描述:不会收缩的Listview
 * 
 * @author ljc
 * @since 2014-4-30 下午7:31:27
 */
public class InnerListView extends ListView {

    public InnerListView(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
    }

    public InnerListView(Context context, AttributeSet attrs) {
        super(context, attrs, 0);
    }

    public InnerListView(Context context) {
        super(context, null, 0);
    }

    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        int heighSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST);
        super.onMeasure(widthMeasureSpec, heighSpec);
    }

}
